home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
fg
/
fgl402e
/
expas.arj
/
TEMP
/
06-08.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
893b
|
44 lines
program main;
uses fgmain, fgmisc;
const
VERTICES = 10;
xy : array [1..2*VERTICES] of integer = (
200,100, 300, 80, 400,100, 400,220, 300,320,
240,320, 160,240, 160,200, 200,160, 210,150);
var
old_mode : integer;
work_array : array [1..700] of integer;
begin
fg_initpm;
old_mode := fg_getmode;
if (fg_testmode(16,1) = 1) then
fg_setmode(16)
else if (fg_testmode(15,1) = 1) then
fg_setmode(15)
else
begin
write('This program requires a 640 x 350 ');
writeln('EGA graphics mode.');
exit;
end;
fg_setcolor(1);
fg_polyoff(-120,-25);
fg_polyline(xy,VERTICES);
fg_polyoff(200,-25);
fg_polyfill(xy,work_array,VERTICES);
fg_waitkey;
fg_setcolor(2);
fg_setclip(480,639,175,349);
fg_polyfill(xy,work_array,VERTICES);
fg_waitkey;
fg_setmode(old_mode);
fg_reset;
end.